package com.ld.security.common.core.base.po;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class PagePo<E> extends ListPo<E> implements  LimitPo {


	@ApiModelProperty("页数")
	private int pageNumber = 1;
	
	@ApiModelProperty("页高")
	private int pageSize = 10;

	public <V> PagePo<V> newQuery(){
		PagePo po =new PagePo();
		po.setOrderBy(getOrderBy());
		po.setAsc(isAsc());
		po.setPageSize(pageSize);
		po.setPageNumber(pageNumber);
		return po;
	}



}
